﻿using System.Web;
using NSuggest.Jsonp.Core;

namespace NSuggest.Example.Hello
{
	/// <summary>
	/// An example of how to use JsonpEngine inside a IHttpHandler.
	/// </summary>
	public class HelloService : JsonpHandler
	{

		protected override bool IsAuthorized(HttpContext context)
		{
			return true;
		}

		protected override object GetObject(HttpContext context)
		{
			return new Hello("Hello world!");
		}
	}
}